<template>
  <div class="box">
    <div><img :src="img" alt="" /></div>
    <div class="box1" v-for="(v, i) in obj" :key="i">
      <div>
        <div><img :src="v.img" alt="" /></div>
        <div>
          <span>{{ v.text }}</span>
        </div>
      </div>
      <div><van-icon name="arrow" /></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      img: "./img/life/grzx (1).png",
      obj: [
        { img: "./img/life/grzx (2).png", text: "我的优惠券" },
        { img: "./img/life/grzx (3).png", text: "我的订单" },
        { img: "./img/life/grzx (4).png", text: "帮助中心" },
        { img: "./img/life/grzx (5).png", text: "营销登记" },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
  text-align: center;
  margin-bottom: 0.6rem;
  > div:nth-child(1) {
    > img {
      width: 0.5rem;
      margin-top: 0.3rem;
      margin-bottom: 0.35rem;
    }
  }
  > .box1 {
    width: 80%;
    display: flex;
    justify-content: space-between;
    margin: 0 0.3rem;
    border-bottom: 0.01rem solid #999;
    > div:nth-child(1) {
      display: flex;
      justify-content: space-between;
      width: 1.5rem;
      > div {
        margin: 0.2rem 0;
        > img {
          width: 0.3rem;
        }
        > span {
          display: inline-block;
          text-indent: 1em;
          font-size: 0.2rem;
          line-height: 0.3rem;
        }
      }
    }
    > div:nth-child(2) {
      padding: 0.2rem 0;
      font-size: 0.2rem;
      line-height: 0.3rem;
    }
  }
}
</style>